Skip to content

Browser SDK: report silent failures and named goals - #66

Merged
sagnik11 merged 1 commit into
mainfrom
silent-failure-signals
Dec 3, 2026
Merged

sagnik11 merged 1 commit into
mainfrom
silent-failure-signals

Conversation

@sagnik11

@sagnik11 sagnik11 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

What this does

The browser SDK reports failures that throw no error, on by default:

  • Dead click: a button or link that does nothing when clicked.
  • Rage click: three or more dead clicks on the same control within 2 seconds.
  • Form rejected: a form blocked by validation, or answered 400/409/422, twice on one page.

It also adds trackGoal(name) for named outcomes such as a completed checkout.

How it works

  • No new event type. Signals travel as the existing outcome type with autter.interaction / autter.control context keys, and goals as a track_event named goal:<name>. Older relays and ingesters keep accepting batches.
  • Privacy. A control is named by data-autter-action, or by tag names and its index among same-tag siblings. Text, values, ids, classes and hrefs are never read.
  • Ingester. Interaction outcomes get error types DeadClick, RageClick, FormRejected at warning level, and a control-v1 fingerprint over group, route template and control key. No migration.
  • Guards against false reports. Disabled controls, new-tab and download links, clicks in the first second, controls inside web components or beside a canvas or player are not watched. A clipboard copy or in-memory download counts as an effect.
  • Turn it off with captureInteractions: false. data-autter-ignore skips a subtree.

Versions

@autter/runtime-browser 1.11.0, @autter/otlp-ingester 1.21.0, compat entry browser-interactions. Nothing is published by this PR.

Checks

  • runtime-browser: 122 of 122 tests; dist/index.js is 7.95 kB brotlied (limit 10 kB).
  • otlp-ingester: 753 of 753 tests.
  • Not run: the Python adapter's compat test (its embedded manifest copy was updated by hand).
  • Not tried in a real browser yet.

Known blind spots

A button whose only effect is sound, a WebSocket message or a storage write can still be reported as dead.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The browser SDK reports failures that throw no error, on by default: a
control that does nothing when clicked, repeated clicks on it, and a form
the app keeps rejecting. It also has trackGoal(name) for named outcomes.

- runtime-browser 1.11.0: detection in the main bundle (7.95 kB brotlied,
  limit 10 kB). A control is named by data-autter-action or by tag names
  only; no text, values, ids or classes are read. Controls inside web
  components or beside a canvas or player are never called dead, and a
  clipboard copy or in-memory download counts as an effect.
- No new event type: signals travel as the existing "outcome" type and
  goals as a track_event named goal:<name>, so older relays and ingesters
  keep accepting batches.
- otlp-ingester 1.21.0: interaction outcomes get error types DeadClick,
  RageClick and FormRejected at warning level and a control-v1 fingerprint
  (group, route template, control key). Compat entry browser-interactions.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@sagnik11
sagnik11 merged commit 82bbc2a into main Dec 3, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant